'''
Created on May 10, 2011

@author: Chris
'''
import unittest
import SentenceLength
import DocumentTokenizer

class Test(unittest.TestCase):


    def setUp(self):
        self.sentLen = SentenceLength.SentenceLength(False, False, False)


    def tearDown(self):
        pass


    def testJoinClause(self):
        clause1 = "This is sentence one"
        clause2 = "this is sentence two"
        
        joined = self.sentLen.joinClauses(clause1, clause2)
        actual = "This is sentence one. This is sentence two."
        
        self.assertEqual(joined, actual)
        
    def testAndSuggestion(self):
        sentenceText = "I don't like to lie and the dog is black."
        token = DocumentTokenizer.DocumentTokenizer()
        doc = token.tokenizeDocument(sentenceText)
        sent = SentenceLength.SentenceLength(False, False, doc)
        
        suggestion = sent.suggest(3, 3)
        print suggestion
        #self.assertEqaul(suggestion, "I don't like to lie. The dog is black.")
        


if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testJoinClause']
    unittest.main()